package com.seven.netty.protocol.constants;

/**
 * @author chendongdong
 * @description 常量
 * @since 2024/3/6 10:11
 */
public class NettyConstant {
    //默认SESSION ID
    public static final Long LOGIN_SESSION_ID = 0L;
    //校验位默认值
    public static final Integer CRC_CODE = 0xABEF;
    //基本消息头长度
    public static final Integer HEAD_LENGTH = 22;
    //版本
    public static final Byte VERSION = 1;
    //消息最大长度 约16KB
    public static final int MAX_LENGTH = 16392;

    public static final int HEAD_INDEX= 10101010;
}
